package com.qiaofang.applet.service.property.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qiaofang.applet.common.base.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;


@Data
@Document(collection = "property_area")
@ApiModel("商圈表")
@NoArgsConstructor
public class Area extends BaseDomain {

    @ApiModelProperty("区域UUID")
    private String districtUuid;

    @ApiModelProperty("商圈UUID")
    private String areaUuid;

    @ApiModelProperty("商圈名称")
    private String areaName;

    @ApiModelProperty("关联更新 true:已更新关联数据 false:未更新关联数据")
    private Boolean relationUpdate;

    @ApiModelProperty("是否删除")
    private Boolean deleted;

    @ApiModelProperty("最后解析日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date lastSyncDate;
}
